package com.YCH.model.article.dtos;

import com.YCH.model.annotation.IdEncrypt;
import lombok.Data;
import org.apache.ibatis.type.Alias;

@Data
public class ArticleActionDto {
    @IdEncrypt
    private Long articleId;
    private short type;// 类型 0文章 1动态
    private Long userId;
    @Alias("ArticleActionDtoClickType")
    public enum Type{
        CLICKED((short)1),CANCEL((short)0);
        short code;
        Type(short code){
            this.code = code;
        }
        public short getCode(){
            return this.code;
        }
    }
}
